package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("pms_product")
public class PmsProduct {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private Integer brandId;
  private Integer productCategoryId;
  private Integer feightTemplateId;
  private Integer productAttributeCategoryId;
  private String name;
  private String pic;
  private String productSn;
  private Integer deleteStatus;
  private Integer publishStatus;
  private Integer newStatus;
  private Integer recommandStatus;
  private Integer verifyStatus;
  private Integer sort;
  private Integer sale;
  private double price;
  private double promotionPrice;
  private Integer giftGrowth;
  private Integer giftPoint;
  private Integer usePointLimit;
  private String subTitle;
  private String description;
  private double originalPrice;
  private Integer stock;
  private Integer lowStock;
  private String unit;
  private double weight;
  private Integer previewStatus;
  private String serviceIds;
  private String keywords;
  private String note;
  private String albumPics;
  private String detailTitle;
  private String detailDesc;
  private String detailHtml;
  private String detailMobileHtml;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date promotionStartTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date promotionEndTime;
  private Integer promotionPerLimit;
  private Integer promotionType;
  private String brandName;
  private String productCategoryName;


}
